package com.broada.apm.util;

/**
 * 
 * 常量类
 * 
 * @author xiangsy Create By 2014年12月2日 下午2:13:53
 */
public class Constants {

	// 系统列表
	public static final String APPLICATIONS = "applications";
	// 单个系统
	public static final String APPLICATION = "application";
	// 性能集合
	public static final String PERFORMANCES = "performances";
	// 单个性能
	public static final String PERFORMANCE = "performance";
	// 关系集合
	public static final String RELATIONS = "relations";
	// 单个关系
	public static final String RELATION = "relation";
	// 节点集合
	public static final String NODES = "nodes";
	// 单个节点
	public static final String NODE = "node";
	// 开始时间
	public static final String STARTTIME = "startTime";
	// 结束时间
	public static final String ENDTIME = "endTime";
	// 数据集合
	public static final String DATA = "data";
	// 时间段
	public static final String TIMEPERIOD = "timeperiod";
	// 维度
	public static final String DIMENSION = "dimension";
	// 资源
	public static final String RESOURCE = "resource";
	// 设备类型
	public static final String DEVICETYPE = "device_category";
	// 浏览器类型
	public static final String BROWSERTYPE = "browser_category";
	// 字典数据
	public static final String BIZCODE = "bizcode";
	// 性能type
	public static final String PERFORMANCETYPE = "perf";
	// 资源type
	public static final String RESOURCETYPE = "resource";
	// 拓扑图节点
	public static final String TOPONODES = "topoNodes";
	// 协议类型
	public static final String PROTOCALS = "protocols";
	// 告警信息
	public static final String ALERTS = "alerts";
	// 成功率为100
	public static final String SUCCESS_RATE = "100";
	// 交易成功
	public static final String SUCCESS = "成功";
	// 交易失败
	public static final String FAIL = "失败";
	public static enum Status {
	    ENABLED(0),DISABLED(1);
	    private Status(int val) {
	        this.vallue = val;
        }
	    int vallue;
	    public int getVallue() {
            return vallue;
        }
	}
}
